package com.fly.platform.base.pojo

import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableName
import com.fly.platform.common.constant.CommonConstant
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal

@TableName("base_department")
@ApiModel("部门")
data class Department(

        @ApiModelProperty(value = "部门名称")
        var title: String? = null,

        @ApiModelProperty(value = "父id")
        @TableField("parent_Id")
        var parentId: String? = null,

        @ApiModelProperty(value = "是否为父节点(含子节点) 默认false")
        @TableField("is_parent")
        var isParent: Boolean = false,

        @ApiModelProperty(value = "排序值")
        @TableField("sort_order")
        var sortOrder: BigDecimal? = null,

        @ApiModelProperty(value = "是否启用 0启用 -1禁用")
        var status: Int = CommonConstant.STATUS_NORMAL,

) : BasePojo() {

    companion object {
        const val serialVersionUID = 1L
    }
}